package com.study.mapper;

import com.study.entity.Homepage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Homepagemapper {
    /**
     * 根据类型获取首页资源
     * @param openType
     * @return
     */
    @Select("select * from homepage_resource where open_type = #{openType} order by sort")
    List<Homepage> getHomepageByType(String openType);
}
